/*
 * @Author: 李天惊 uf_lee@163.com
 * @Date: 2022-07-18 16:27:03
 * @LastEditors: 李天惊 uf_lee@163.com
 * @LastEditTime: 2022-08-18 10:47:44
 * @FilePath: \ahbs\uc_sys\src\api\tools\index.ts
 * Copyright (c) 2022 by 李天惊 uf_lee@163.com, All Rights Reserved.
 */
import { useAxios } from '@/hooks/web/useAxios'
const request = useAxios()
import { TableData, FieldData } from './types'

// 查询表数据
export const sysToolsTableListApi = (data: TableData) => {
  return request.post({
    url: 'index.php/api/common',
    data: {
      code: 'sysToolsTableList',
      data: data
    }
  })
}

// 查询字段信息
export const sysToolsFieldListApi = (data: FieldData) => {
  return request.post({
    url: 'index.php/api/common',
    data: {
      code: 'sysToolsFieldList',
      data: data
    }
  })
}
